<%@page import="cn.hello2018.entity.User"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
</head>
<body>
	当前用户在线人数：${userNumber } <br>
	<%
		ArrayList<User> userList = (ArrayList<User>) request.getServletContext().getAttribute("userList");
	if(userList != null && userList.size() > 0) {
		for (int i = 0; i < userList.size(); ++i) {
			User user = userList.get(i);
	%>
		sessionId:<%=user.getSessionIdString() %>&nbsp;&nbsp;IP:<%=user.getIpString() %>&nbsp;&nbsp;FirstTime:<%=user.getFirstTimeString() %> <br />
	<%}} %>
</body>
</html>